package com.example.demo.service.impl;

import com.example.demo.dao.SysUserMapper;
import com.example.demo.dto.SysUser;
import com.example.demo.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName SysUserServiceImpl
 * @Desecription TODO 1.2新增
 * @Author gjy
 * @Date 2021/4/7 16:19
 * @Version 1.2
 **/
@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserMapper userMapper;

    @Override
    public SysUser selectById(Integer id) {
        return userMapper.selectById(id);
    }
    @Override
    public SysUser selectByName(String name) {
        return userMapper.selectByName(name);
    }

}
